package model.characters.weapons;

import java.awt.Point;
import java.awt.Rectangle;

import model.ComponentTypeEnum;
import model.LayerEnum;
import model.ModelComponent;

public class MT40Shot implements Handable, ModelComponent {
	private Rectangle region;
	private Integer speed = 15;
	private Integer damage;
	
	private int direction;
	
	private ComponentTypeEnum type;
	
	public MT40Shot(Point point, Integer direction) {
		damage = 25;
		region = new Rectangle(point.x, point.y, 5, 5);
		this.direction = direction;
		type = ComponentTypeEnum.MT40_SHOT;
	}
	
	public Rectangle getRegion() {
		return region;
	}
	public Integer getSpeed() {
		return speed;
	}
	public Integer getDamage() {
		return damage;
	}

	@Override
	public void action() {
		region.x += (speed*direction);
	}

	@Override
	public LayerEnum getLayer() {
		// TODO chumbei primeira layer, necessario rever isso? rs
		return LayerEnum.LAYER_1;
	}

	@Override
	public ComponentTypeEnum getType() {
		return type;
	}

	@Override
	public int getDirection() {
		return direction;
	}
	
}
